<!DOCTYPE html>
<html lang="en">
<head>
	<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
	<!-- <meta name="viewport" content="target-densitydpi=device-dpi,width=750,user-scalable=no" /> -->
	<meta name="viewport" content="width=device-width,initial-scale=1,user-scalable=no" />
	<title>用户中心</title>
	<meta http-equiv="cleartype" content="on">
    <meta name="apple-mobile-web-app-title" content="...">
    <meta name="apple-mobile-web-app-capable" content="yes">
    <meta name="format-detection" content="telephone=no">
    <meta http-equiv="x-rim-auto-match" content="none">
    <meta name="apple-touch-fullscreen" content="yes">
    <meta name="apple-mobile-web-app-status-bar-style" content="black">
	<!-- windows phone 点击无高光 -->
	<meta name="msapplication-tap-highlight" content="no">
	<link rel="stylesheet" type="text/css" href="/css/base2.css" />
	<link rel="stylesheet" type="text/css" href="/js/mobile2/lib/idangerous.swiper.css" />
	<script type="text/javascript" src="/js/mobile2/lib/jquery-1.10.1.min.js"></script>
	<script type='text/javascript' src='/js/mobile2/js/mobilecom.js' charset='utf-8'></script>
</head>
<body>
	<div class="main">
		<div class="page-title">
			<div class="icon c-back" onclick="window.location.href='/index2'"></div>
			<i class="title">我的</i>
			<a href="javascript:LoginOut();" class="user-ops" data-sta="exit">退出</a>
		</div>
		<!-- user info -->
		<div class="user-info-box">
			<div class="user-info">
				<!-- 没有登录 -->
				<span class="icon user-himg "><img src="${userbaseinfo.fPhoto!}"></span>
				<!-- 登录成功 -->
				<!-- <span class="icon user-himg have-login"></span> -->
				<span class="user-name">${userbaseinfo.fUsername!}</span>
			</div>
		</div>
		<!-- 影片展示 -->
		<div class="moves-box">
			<!-- 影片推荐 -->
			<div class="move-list" style="margin-top: 0;">
				<div class="move-title">
					<span class="mt-name">我的想看</span>
					<!--<span class="icon clear-moves"></span>-->
				</div>
				<div class="move-c">

				</div>
				<div class="no-result" style="display: none;">
					<div class="icon no-result-tag"></div>
					暂无内容
				</div>
			</div>
		</div>
		<div class="loading-finish"></div>
		<!-- ibottom -->
		<div class="ibot-box">
			<div class="ibot-layer"></div>
			<span class="ibot" >
				<span class="icon itop-close"></span>
				<span class="icon ibot-logo"></span>
				<span class="ibot-txt">爱电影，爱生活</span>
				<span class="ibot-down" onclick="DwonApp()">立即下载</span>
			</span>
		</div>
	</div>
	<script type="text/javascript" src="/js/mobile2/lib/idangerous.swiper.min.js"></script>
	<script type="text/javascript" src="/js/mobile2/js/usercenter.js"></script>
	<script type="text/javascript" src="/js/mobile2/js/base.js"></script>

	<script>
        var filmObject = {
            pno: 1,
            pagesize: 6,
            allcount: -1
        }
        LoadMyCollect();
        function LoadMyCollect(){
            $('.no-result').hide();
            $.ajax({
                type: 'post',
                url:
                '/api/videocount/getmycollectlog?pno='+filmObject.pno+'&pagesize='+filmObject.pagesize+'&allcount=-1',
                dataType: 'json',
                success: function(data){
                    if (mortise_layout.ValidataResult(data)) {
                        var videoList = data.result.list;
                        var dataCount=data.result.count;
                        filmObject.allcount=dataCount;
                        //$('#sp_commentct').html(dataCount);
                        if (videoList && videoList.length > 0) {
                            var _html = '';
                            for (var i=0;i<videoList.length;i+=1){
                                _html+='	<span class="mc-list">'+
                                    '<div class="mc-img">'+
                                    '<img src="'+videoList[i].fObject.fPhoto+'">'+
                                    '<i class="mc-source">'+videoList[i].fObject.fScore+'</i>'+
                                    '</div>'+
                                    '<div class="mc-name">'+videoList[i].fObject.fName+'</div>'+
                                    '</span>';
                            }
                            if(filmObject.pno==1){
                                $('.move-c').html(_html);
                            }
                            else{

                                $('.move-c').append(_html);
                            }
//                            if (dataCount>( filmObject.pno)* filmObject.pagesize){
//                                $('#div_commentfoot').html('<span class="get-more-data"  style="cursor:pointer" onclick="loadMore()">点击加载更多...</span>');
//                            }
//                            else{
//                                //over
//                                $('#div_commentfoot').html('<span class="get-more-data" >没有数据了...</span>');
//                            }
                        }
                        else{
                            if(filmObject.pno==1){ $('.no-result').show();}

                        }

                    }

                }
            });
        }
        function loadMore() {
            filmObject.pno++;
            LoadMyCollect();
        }
	</script>
</body>
</html>